<?php
include_once('db.class.php');
include_once('contact.class.php');
include_once('messagegrabber.class.php');
class ContactAdminFunctions implements MessageGrabber{
	function retrieveYourMessages() {
		$db = new db();
		$user_id = $_SESSION['user_id'];
		$results = $db->select("SELECT * FROM contact_tickets WHERE contact_ticket_admin_id = '$user_id' AND contact_ticket_status = '1' ORDER BY contact_ticket_update");
		if($results != 0) {
			return $results;
		}
		return 0;
	}
}
?>